﻿module UI {

    export class InputArgs {

        public mouse: MouseState = undefined;

        public key: string = undefined;

        public static createMouse(mouse: MouseState): InputArgs {
            var result = new InputArgs();
            result.mouse = mouse;
            return result;
        }

        public static createKey(e: KeyboardEvent): InputArgs {
            var result = new InputArgs();
            result.key = UI.getKey(e);
            return result;
        }

    }

} 